									<div id="prdCategory" class="mgt10">
                                    <div class="block-top common-bg">Gian hàng</div>
                                   	<ul class="category-menu" id="vTreeMenu">
                                    <?php if(isset($categories) && sizeof($categories) > 0) {
                                    foreach($categories as $category) {
                                    ?>
                                     <?php if ($category['category_id'] == $category_id) { ?>
                                        <li class="active">
                                            <a class="parent" href="<?php echo $category['href'];?>"><?php echo $category['name'];?></a>
                                            
                                             <?php if ($category['children']) { ?>                                          
                                            <ul class="sub-menu">
                                             <?php foreach ($category['children'] as $child) { ?>
                                                <li <?php echo ($child['category_id'] == $child_id) ? 'class="active"': ''; ?>>
                                                   <a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a>
                                                  
                                                </li>
                                                <?php } ?>
                                              </ul>
                                              <?php } ?>
                                      </li>
                                      
                                      <?php } else { ?>
                                      
                                       <li><a class="parent" href="<?php echo $category['href'];?>"><?php echo $category['name'];?></a></li>
                                      
                                      
                                      <?php } } } ?>
                                      
                                    </ul> 
                                    <div class="block-btm common-bg"></div>
                                </div>